package com.sea.physical.mapper;

import com.sea.physical.entity.CreateDespatchPlan;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 发运
 * @author 陈鸿飞
 */
public interface CreateDespatchPlanMapper {

    /**
     * 新增表头
     * @param createDespatchPlan
     * @return
     */
    int insert(CreateDespatchPlan createDespatchPlan);

    /**
     * 查询指定
     * @param createId
     * @return
     */
    CreateDespatchPlan findByCreateId(Integer createId);

    /**
     * 条件查询
     * @param createDespatchPlan
     * @return
     */
    List<CreateDespatchPlan> findByCnd(CreateDespatchPlan createDespatchPlan);

    /**
     * 更新
     * @param createDespatchPlan
     * @return
     */
    int update(CreateDespatchPlan createDespatchPlan);

    /**
     *
     * @param createId
     * @return
     */
    int updateTotal(Integer createId);

    /**
     *
     * @param createId
     * @return
     */
    int delete(Integer createId);

    Integer updateBoxNumberByCreateId(@Param("boxNumber")Integer boxNumber, @Param("id")Integer id);

}
